﻿<%@ Page Language="C#" MasterPageFile="~/WebManager/manager.Master" AutoEventWireup="true"
    CodeBehind="SetDefaultAD.aspx.cs" Inherits="BaoJian.WebManager.Manager.RelateCol.SetDefaultAD"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="right">
        <asp:Button ID="Cancel" runat="server" Text="返回" OnClick="Cancel_Click" />
        &nbsp;&nbsp;&nbsp;
    </div>
    <br />
    <br />
    <div align="right">
        <asp:Button ID="NewAD" runat="server" Text="新建" OnClick="NewAD_Click" />
        &nbsp;&nbsp;&nbsp;
        <asp:Button ID="DeleteAD" runat="server" Text="删除" OnClick="DeleteAD_Click" />
        &nbsp;&nbsp;&nbsp;
    </div>
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td height="25" width="30%" align="right">
                页面
            </td>
            <td height="25" width="*" align="left">
                Default.aspx
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right">
                区域
            </td>
            <td height="25" width="*" align="left">
                <asp:DropDownList ID="Region" runat="server" DataTextField="GName" DataValueField="GName"
                    AutoPostBack="True" OnSelectedIndexChanged="Region_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right">
                序号(手动填写，必填)
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtSequence" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right">
                图片或者Flash（必填)
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtImage" runat="server" Width="200px"></asp:TextBox>
                <asp:FileUpload ID="FileUpload1" runat="server" />&nbsp;
                <asp:Button ID="Upload" runat="server" Text="上传" OnClick="Upload_Click" />
                <asp:Label ID="UploadStatusLabel" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right">
                宽度
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtWidth" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right">
                高度
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtHeight" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right">
                描述
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtDescription" TextMode="MultiLine" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right">
                Type(是否是flash,必选)
            </td>
            <td height="25" width="*" align="left">
                <asp:CheckBox ID="chkType" runat="server" Checked="False" />
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right">
                超链接地址(必填)
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtURL" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" BorderStyle="None"
            BorderWidth="1px" BorderColor="#CCCCCC" BackColor="White" CellPadding="3" Width="100%"
            PageSize="12">
            <HeaderStyle Font-Size="9pt" Font-Names="宋体" Font-Bold="True" ForeColor="Black" BackColor="SkyBlue">
            </HeaderStyle>
            <SelectedRowStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedRowStyle>
            <RowStyle ForeColor="Black" BackColor="White"></RowStyle>
            <Columns>
                <asp:BoundField DataField="Sequence" HeaderText="序号" ReadOnly="True" />
                <asp:BoundField DataField="Region" HeaderText="区域" ReadOnly="True" />
                <asp:BoundField DataField="Image" HeaderText="图片" ReadOnly="True" />
                <asp:BoundField DataField="Width" HeaderText="宽度" ReadOnly="True" />
                <asp:BoundField DataField="Height" HeaderText="高度" ReadOnly="True" />
                <asp:BoundField DataField="Type" HeaderText="类型" ReadOnly="True" />
                <asp:BoundField DataField="URL" HeaderText="超链接" ReadOnly="True" />
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <input type="checkbox" id="selectCB" name="selectCB" value="<%# DataBinder.Eval(Container.DataItem,"SID")%>">
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <AlternatingRowStyle BackColor="#E0E0E0" BorderColor="DarkGray" BorderStyle="Dashed"
                BorderWidth="1px" />
        </asp:GridView>
        <br />
        <br />
        <div style="border: 1px red dotted">
            上传图片名称不应含有汉字:
            地方版首页四个广告大小依次是(宽*高)：1. 975*80  2. 179*233 3. 785*114 4.975*145
        </div>
    </div>
</asp:Content>
